import { defHttp } from '/@/utils/http/axios';
import { UploadFileParams } from '/#/axios';

enum Api {
  UPLOAD_FILE = 'basic-api/admin/file/upload',
}
export function professionSaveApi(
  params: UploadFileParams,
  onUploadProgress: (progressEvent: ProgressEvent) => void,
) {
  return defHttp.uploadFile<String>(
    {
      url: Api.UPLOAD_FILE,
      onUploadProgress,
    },
    params,
  );
}
